#pragma once

#include "Base/Tests/Test.Application.h"

#undef  APP_NAME
#define APP_NAME	TestVibrate
#undef  APP_BASE
#define APP_BASE	TestApp


class APP_NAME : public APP_BASE
{
public:
	APP_NAME (IPlatform *platform, EDevice::type deviceType) :
		APP_BASE( platform, deviceType )
	{
	}

	void OnEnter () override
	{
		int64_array_t	pattern;

#		define S( x )	int64( 1000.0 * x )

		pattern << 0
				<< S( 0.5 ) << S( 0.7 )
				<< S( 0.5 ) << S( 1.0 )
				<< S( 0.3 ) << S( 0.3 )
				<< S( 0.3 ) << S( 0.3 )
				<< S( 0.3 ) << S( 0.3 );

		GetPlatform()->Vibrate( pattern );
	}
};